﻿<%@ Control Language="C#" ClassName="ChietKhauSanPhamFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Chiet Khau Spid:</td>
				<td>
					<asp:HiddenField runat="server" id="dataChietKhauSpid" Value='<%# Bind("ChietKhauSpid") %>'></asp:HiddenField>
				</td>
			</tr>				
			<tr>
				<td class="literal">Nhom San Pham Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataNhomSanPhamId" DataSourceID="NhomSanPhamIdNhomSanPhamDataSource" DataTextField="SanPhamId" DataValueField="NhomSanPhamId" SelectedValue='<%# Bind("NhomSanPhamId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:NhomSanPhamDataSource ID="NhomSanPhamIdNhomSanPhamDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Don Vi Tinh Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataDonViTinhId" DataSourceID="DonViTinhIdDonViTinhDataSource" DataTextField="TenDonViTinh" DataValueField="DonViTinhId" SelectedValue='<%# Bind("DonViTinhId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:DonViTinhDataSource ID="DonViTinhIdDonViTinhDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">So Luong:</td>
				<td>
					<asp:TextBox runat="server" ID="dataSoLuong" Text='<%# Bind("SoLuong") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataSoLuong" runat="server" Display="Dynamic" ControlToValidate="dataSoLuong" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataSoLuong" runat="server" Display="Dynamic" ControlToValidate="dataSoLuong" ErrorMessage="Invalid value" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Muc Thuong:</td>
				<td>
					<asp:TextBox runat="server" ID="dataMucThuong" Text='<%# Bind("MucThuong") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataMucThuong" runat="server" Display="Dynamic" ControlToValidate="dataMucThuong" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataMucThuong" runat="server" Display="Dynamic" ControlToValidate="dataMucThuong" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Loai Thuong:</td>
				<td>
					<asp:RadioButtonList runat="server" ID="dataLoaiThuong" SelectedValue='<%# Bind("LoaiThuong") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>				
			<tr>
				<td class="literal">Chiet Khau Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataChietKhauId" DataSourceID="ChietKhauIdChietKhauDataSource" DataTextField="StartDate" DataValueField="ChietKhauId" SelectedValue='<%# Bind("ChietKhauId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:ChietKhauDataSource ID="ChietKhauIdChietKhauDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Last Update:</td>
				<td>
					<asp:TextBox runat="server" ID="dataLastUpdate" Text='<%# Bind("LastUpdate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataLastUpdate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataLastUpdate" runat="server" Display="Dynamic" ControlToValidate="dataLastUpdate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Update By:</td>
				<td>
					<asp:TextBox runat="server" ID="dataUpdateBy" Text='<%# Bind("UpdateBy") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUpdateBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdateBy" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataUpdateBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdateBy" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Hinh Thuc Thuong:</td>
				<td>
					<asp:TextBox runat="server" ID="dataHinhThucThuong" Text='<%# Bind("HinhThucThuong") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


